<br />
<script language="JavaScript" type="text/javascript" src='http://<?php echo base_url(); ?>/assets/JS/jquery.tablesorter.js'></script>

<a class='btn btn-success btn-lg' href='http://<?php echo base_url(); ?>index.php/family/menu' role='button'>返回主页</a>
<br />

<p class='text-center lead'>好习惯</p>

<br>

<table class='table table-striped table-bordered' id = 'mytable'>
	<thead>
	<tr  class="info">
	<th class="col-md-10" ><strong>描述</strong></th>
	<th class="col-md-2" ><strong>操作</strong></th>
	</tr>
	</thead>
	
	<tbody>
	{good}
		<tr>
		<td>{des}</td>
		<td> <a class='btn btn-danger btn-sm' href='http://<?php echo base_url(); ?>index.php/behave/del/{id}' role='button'>删除</a> </td>
		</tr>
	{/good}
	</tbody>
</table>

<a class='btn btn-primary btn-sm' href='http://<?php echo base_url(); ?>index.php/behave/add/good' role='button'>增加好习惯</a>
<br />

<p class='text-center lead'>坏习惯</p>

<br>

<table class='table table-striped table-bordered' id = 'mytable'>
	<thead>
	<tr  class="info">
	<th class="col-md-10" ><strong>描述</strong></th>
	<th class="col-md-2" ><strong>操作</strong></th>
	</tr>
	</thead>
	
	<tbody>
	{bad}
		<tr>
		<td>{des}</td>
		<td> <a class='btn btn-danger btn-sm' href='http://<?php echo base_url(); ?>index.php/behave/del/{id}' role='button'>删除</a> </td>
		</tr>
	{/bad}
	</tbody>
</table>

<a class='btn btn-primary btn-sm' href='http://<?php echo base_url(); ?>index.php/behave/add/bad' role='button'>增加坏习惯</a>
<br />
<br />

<a class='btn btn-success btn-lg' href='http://<?php echo base_url(); ?>index.php/family/menu' role='button'>返回主页</a>


<script type="text/javascript">
	jQuery("#mytable").tablesorter();
</script>
